import request from '@/utils/request'
import dart from 'highlight.js/lib/languages/dart'

/**
 * 查询用户问题反馈列表
 * @param {*} query 
 * @returns 
 */
export function listUserFeedback(query) {
    return request({
        url: '/system/userFeedback/list',
        method: 'get',
        params: query
    })
}

/**
 * 查询用户问题反馈详细
 * @param {*} id 
 * @returns 
 */
export function getUserFeedback(id) {
    return request({
        url: '/system/userFeedback/' + id,
        method: 'get'
    })
}

/**
 * 新增用户问题反馈
 * @param {*} data 
 * @returns 
 */
export function addUserFeedback(data) {
    return request({
        url: '/system/userFeedback',
        method: 'post',
        data: data
    })
}

// 修改用户问题反馈
export function updateUserFeedback(data) {
    return request({
        url: '/system/userFeedback',
        method: 'put',
        data: data
    })
}

// 删除用户问题反馈
export function delUserFeedback(id) {
    return request({
        url: '/system/userFeedback/' + id,
        method: 'delete'
    })
}

/**
 * 修改问题处理状态
 * @param {*} query 
 * @returns 
 */
export function changeProcessed(query) {
    return request({
        url: '/system/userFeedback/processed',
        method: 'post',
        params: query
    })
}